/*
 ipLimiter.go
 Created by hupfei on 2019-06-12
*/

package model

//cvn_log/usdt_log中的status
const DealStatusSuccess = 1
const DealStatusFail = 2
const DealStatusCheck = 3

type PageParams struct {
	//Page int `form:"page" binding:"min=1"`
	Page int `form:"page"`
	Per  int `form:"per" binding:"max=500"`
}

func NewDefaultPageParams() PageParams {
	return PageParams{
		Page: 1,
		Per:  20,
	}
}

type ApiSign struct {
	T    int64  `form:"t" json:"t" binding:"required"`
	Sign string `form:"sign" json:"sign" binding:"required"`
}

type IdParams struct {
	Id int64 `form:"id" json:"id" binding:"required"`
}

type List struct {
	CountItem int         `json:"count_item"`
	CountPage int         `json:"count_page"`
	List      interface{} `json:"list"`
}

type PageList struct {
	CountItem int `json:"count_item"`
	CountPage int `json:"count_page"`
}
